]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ci: Restore /etc/passwd permissions after installing packages
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 26 May 2025 13:27:22 +0000 (15:27 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 4 Jun 2025 19:12:06 +0000 (19:12 +0000)
The flatpak package installs a sysuser trigger, which for some reason
messes up the permissions of /etc/passwd to only be readable by root.

Work around this by simply restoring the permissions at the end.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3727>

.gitlab-ci/build-toolbox-image.sh

index 24f110aa6aaa47f297c3d364ecb881f152bccedb..1b4934fd687381210728939218ddf83a5fb82bfa 100755 (executable)
@@ -45,6 +45,10 @@ build_container() {
   buildah run $build_cntr dnf clean all
   buildah run $build_cntr rm -rf /var/lib/cache/dnf
 
+  # somehow the sysusers trigger from the flatpak package messes up the
+  # permissions of /etc/passwd to be only readable by root
+  buildah run $build_cntr chmod 644 /etc/passwd
+
   # disable gnome-keyring activation:
   # it either asks for unlocking the login keyring on startup, or it detects
   # the running host daemon and doesn't export the object on the bus, which